import 'package:flutter/material.dart';

Color textColor(String content) {
  if (content.contains("正常") || content.contains("成功")) {
    return Colors.green;
  }
  if (content.contains("异常") ||
      content.contains("离线") ||
      content.contains("失败") ||
      content.contains("不存在")) {
    return Colors.red;
  }
  return Colors.black;
}
